import random
import matplotlib.pyplot as plt
from scipy import stats


def roll(init, counts):
    init_value = init
    counts = counts
    num = 1
    x = []
    y = []
    choice = stats.norm(0.01, 0.05).rvs(100)
    while num <= counts:
        factor = 1 + random.choice(choice)
        init_value *= factor
        x.append(num)
        num += 1
        y.append(init_value)
    plt.plot(x, y)


if __name__ == '__main__':
    for i in range(20):
        roll(100, 100)